package com.guigu.video.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class AbCourseVideo implements Serializable {
    private static final long serialVersionUID=1L;

    /**
     * 视频ID
     */
    @TableId(value = "video_id",type = IdType.AUTO)
    private Long  video_id  ;

    /**
     * 视频名称
     */
    private String videoTitle;

    /**
     * 课程ID
     */
    private Long courseId;

    /**
     * 视频时长（秒）
     */
    private Float duration;

    /**
     * 播放次数
     */
    private Long playCount;

    /**
     * 云端视频资源
     */
    private String videoSourceId;

    /**
     * 排序字段
     */

    private long videoSort;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime videoCreate;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime videoModified;


}
